WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::BufferVectorComposite Class Reference

Buffer of VectorComposite. More...

#include <core/processor/buffer.h>

Inheritance diagram for wolf::BufferVectorComposite:
[legend]

Additional Inherited Members

- Public Types inherited from wolf::Buffer< VectorComposite >
typedef std::map< TimeStamp, VectorComposite >::iterator Iterator
 Buffer iterator. More...
 
typedef std::map< TimeStamp, VectorComposite >::const_iterator ConstIterator
 Buffer const iterator. More...
 
- Public Member Functions inherited from wolf::Buffer< VectorComposite >
 Buffer ()
 Default constructor. More...
 
 ~Buffer (void)
 Destructor. More...
 
VectorComposite select (const TimeStamp &_time_stamp, const double &_time_tolerance) const
 Select an element from the buffer. More...
 
ConstIterator selectIterator (const TimeStamp &_time_stamp, const double &_time_tolerance) const
 Select an element iterator from the buffer. More...
 
Iterator selectIterator (const TimeStamp &_time_stamp, const double &_time_tolerance)
 Select an element iterator from the buffer (see the const version) More...
 
VectorComposite selectFirstBefore (const TimeStamp &_time_stamp, const double &_time_tolerance) const
 Returns the oldest element if it is older than _time_stamp or within the time tolerance (T() otherwise) More...
 
VectorComposite selectLastAfter (const TimeStamp &_time_stamp, const double &_time_tolerance) const
 Returns the newest element if it is newer than _time_stamp or within the time tolerance (T() otherwise) More...
 
VectorComposite selectFirst () const
 Returns the oldest element (T() if empty) More...
 
VectorComposite selectLast () const
 Returns the newest element (T() if empty) More...
 
SizeStd size (void) const
 Returns the number of elements of the buffer. More...
 
void emplace (const TimeStamp &_time_stamp, const VectorComposite &_element)
 Adds an element to the buffer. More...
 
const std::map< TimeStamp, VectorComposite > & getContainer () const
 Returns the container with elements of the buffer. More...
 
std::map< TimeStamp, VectorComposite > & getContainer ()
 Returns the container with elements of the buffer. More...
 
void removeUpTo (const TimeStamp &_time_stamp)
 Removes all elements in the buffer with a time stamp older than or equal to the specified. More...
 
void removeUpToLower (const TimeStamp &_time_stamp)
 Removes all elements in the buffer with a time stamp older than the specified. More...
 
void clear ()
 Clears the buffer. More...
 
bool empty () const
 Returns whether the buffer is empty. More...
 
- Static Public Member Functions inherited from wolf::Buffer< VectorComposite >
static bool checkTimeTolerance (const TimeStamp &_time_stamp1, const TimeStamp &_time_stamp2, const double &_time_tolerance)
 Returns whether the time distance between two time stamps is smaller than or equal to the time tolerance. More...
 
static bool doubleCheckTimeTolerance (const TimeStamp &_time_stamp1, const double &_time_tolerance1, const TimeStamp &_time_stamp2, const double &_time_tolerance2)
 Returns whether the time distance between two time stamps is smaller than or equal to the minimum of their time tolerances. More...
 
- Protected Attributes inherited from wolf::Buffer< VectorComposite >
std::map< TimeStamp, VectorComposite > container_
 Main buffer container, ordered by time stamp. More...
 

Detailed Description


The documentation for this class was generated from the following file: